<?php
$this->breadcrumbs = array(
    'Student Details' => array('admin'),
    'Manage',
);

//$this->menu = array(
//    //array('label'=>'List Student Details','url'=>array('index')),
//    array('label' => 'Create Student Details', 'url' => array('create')),
//);
?>

<h1>Manage Student Details</h1>

<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'id' => 'aman-student-details-grid',
    'itemsCssClass' => 'table-bordered items',
    'dataProvider' => $model->search(),
    'columns' => array(
        array(
            'class' => 'editable.EditableColumn',
            'name' => 'first_name',
            'headerHtmlOptions' => array('style' => 'width: 110px'),
            'editable' => array(//editable section
                //'apply'      => '$data->state_name != 4', //can't edit deleted users
                'url' => $this->createUrl('amanStudentDetails/updateStudentDetails'),
                'placement' => 'right',
            )
        ),
        array(
            'class' => 'editable.EditableColumn',
            'name' => 'last_name',
            'headerHtmlOptions' => array('style' => 'width: 110px'),
            'editable' => array(//editable section
                //  'apply'      => '$data->status != 4', //can't edit deleted users
                'url' => $this->createUrl('amanStudentDetails/updateStudentDetails'),
                'placement' => 'right',
            )
        ),
        array(
            'class' => 'editable.EditableColumn',
            'name' => 'gender',
            'headerHtmlOptions' => array('style' => 'width: 100px'),
            'editable' => array(
                'type' => 'select',
                'url' => $this->createUrl('amanStudentDetails/updateStudentDetails'),
                'placement' => 'right',
                'source' => $this->createUrl('amanStudentDetails/gender'),
//onsave event handler
                'onSave' => 'js: function(e, params) {
console && console.log("saved value: "+params.newValue);
}',
            )
        ),
        array(
            'class' => 'editable.EditableColumn',
            'name' => 'email_address',
            'headerHtmlOptions' => array('style' => 'width: 110px'),
            'editable' => array(//editable section
                //  'apply'      => '$data->status != 4', //can't edit deleted users
                'url' => $this->createUrl('amanStudentDetails/updateStudentDetails'),
                'placement' => 'right',
            )
        ), array(
            'class' => 'editable.EditableColumn',
            'name' => 'mobile_no',
            'headerHtmlOptions' => array('style' => 'width: 110px'),
            'editable' => array(//editable section
                //  'apply'      => '$data->status != 4', //can't edit deleted users
                'url' => $this->createUrl('amanStudentDetails/updateStudentDetails'),
                'placement' => 'right',
            )
        ),
        array(
            'class' => 'bootstrap.widgets.TbButtonColumn',
            'template' => '{view}{delete}',
            'buttons' => array
                (
                'view' => array
                    (
                    'label' => 'View',
                 
                    'url' => 'Yii::app()->createUrl("amanStudentDetails/details", array("id"=>$data->id))',
                ),
            ),
        ),
    ),
));
?><script>
    $(document).ready(function() {
      
        $(".last").hide();
      
    });

</script>